$(function (){
    $('#discuss-box').keydown(function (event){
        if(event.keyCode ==13){ //回车事件
            var text = $(this).val();
            var url = "http://39.98.144.29:6061/?s=index/chart/index";
            var data = {'content':text,'game_id':1};
            $.post(url,data,function (result){
                //todo
                $(this).val("");
            },'json');
        }
    });
});
